package com.niiwoo.activity.stage.service.activity;

import com.niiwoo.activity.stage.dto.response.activity.ActivityResponseDTO;
import com.niiwoo.activity.stage.dto.response.activity.LotteryInfoRespDTO;
import com.niiwoo.activity.stage.dto.response.activity.LuckyStarRespDTO;
import com.niiwoo.activity.stage.dto.response.activity.StartLotteryRespDTO;

import java.util.List;

/**
 * Created by dengyunhui on 2017/12/08.
 * <p>
 * 幸运大转盘服务
 */
public interface LotteryActivityDubboService {

    /**
     * 获取今日幸运星
     *
     * @return
     */
    List<LuckyStarRespDTO> getLuckyStar();

    /**
     * 获取幸运大转盘相关信息
     *
     * @param userId
     * @return
     */
    LotteryInfoRespDTO getLotteryInfo(String userId);

    /**
     * 开始抽奖
     *
     * @param userId
     * @return
     */
    StartLotteryRespDTO startLottery(String userId);

    /**
     * 合成抽奖获取礼品
     * @param userId
     * @param activity
     * @return
     */
    default StartLotteryRespDTO compoundLotteryPrize(String userId,ActivityResponseDTO activity){
        throw new UnsupportedOperationException("不支持的方法");
    };
}
